from flask import Blueprint,render_template, request,session
from config import conn,cur,mutex ,r as redis

Public = Blueprint('Publics',__name__)
 

@Public.route('/leftNav',methods=["GET", "POST"])
def leftnav():
    return render_template('/public/nav.html' )

@Public.route('/doctorLeftNav',methods=["GET", "POST"])
def doctornav():
    return render_template('/public/doctorNav.html' )



@Public.before_request
def before():
    if session.get('id') is None:
        return 'you are not login yet!'
    else:
        pass